package com.forfunnet.minjian.ui;

import android.app.Activity;
import android.os.Bundle;

import com.forfunnet.minjian.MyApplication;
import com.forfunnet.minjian.MyApplication_;

/**
 * Created by RexQian on 2/13/2015.
 */
public abstract class BaseActivity extends Activity {

    MyApplication mApp;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mApp = MyApplication_.getInstance();
    }

    @Override
    protected void onStart() {
        super.onStart();
        mApp.onActivityStart();
    }

    @Override
    protected void onStop() {
        super.onStop();
        mApp.onActivityStop();
    }
}
